
tuple = ("刘备", "关羽", "张飞")
a = tuple[1]
print(a)

# tuple[1] = "曹操"  #元组的值不能修改


print(tuple.count("刘备"))
print(tuple.index("刘备"))

tuple2 = (4,5,6,7,13,48,25,69)
print(len(tuple2))
print(max(tuple2))
print(min(tuple2))

if 2 in tuple2:
    print("2在元组的tuple2中")

if 2 not in tuple2:
        print("2在元组的tuple2中")